var t = require("../../../utils/api.js"), a = getApp();

Page({
    data: {
        info: ""
    },
    onLoad: function(o) {
        var e = this, i = o.id;
        wx.showLoading({
            title: "加载中"
        }), wx.setNavigationBarColor({
            frontColor: wx.getStorageSync("basic").topcolor,
            backgroundColor: wx.getStorageSync("basic").topbg
        }), t.getFraction_order_details({
            openid: a.globalData.openid,
            id: i
        }).then(function(t) {
            console.log(t), 0 == t.data.status ? (e.setData({
                info: t.data.data
            }), wx.hideLoading()) : wx.showLoading({
                title: t.data.msg
            });
        });
    },
    copyText: function(t) {
        var a = t.currentTarget.dataset.text;
        wx.setClipboardData({
            data: a,
            success: function(t) {
                wx.getClipboardData({
                    success: function(t) {
                        console.log(t.data);
                    }
                });
            }
        });
    }
});